package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * kill event
 * 
 * 
 * @author (h0t@_G0|i
 * 
 */

public class KillEvtCapImpl
    extends EvtCap
{

    public KillEvtCapImpl(List<String> list)
    {
        if(list.size() < 7)
        {
            validEvt = false;
            return;
        } else
        {
            validEvt = true;
            timeStamp = Double.valueOf(list.get(0)).doubleValue();
            killerId = Integer.parseInt(list.get(2));
            killerWeapon = list.get(3);
            killedId = Integer.parseInt(list.get(4));
            killedWeapon = list.get(5);
            deathType = list.get(6);
            return;
        }
    }

    public int killerId;
    public String killerWeapon;
    public int killedId;
    public String killedWeapon;
    public String deathType;
}
